package com.imooc.bilibili.domain.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 刷新令牌记录表
 * </p>
 *
 * @author gcq
 * @since 2022-06-03
 */
@Data
@TableName("t_refresh_token")
public class RefreshToken implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 刷新令牌
     */
    @TableField(value = "refreshToken")
    private String refreshToken;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

}
